<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <ui:composition template="/content/templates/mainTemplate.xhtml">
        <ui:define name="title">#{labels['PASSWORD_RECOVERY']}</ui:define>
        <ui:define name="body">
            <ui:decorate template="/content/templates/contentDecorator.xhtml">

                <h:form>
                    <table class="loginForm">
                        <tr>
                            <td><label>#{labels['LOGIN']}:</label></td>
                            <td>
                                <h:inputText value="#{authBean.credentials.login}" maxlength="50" styleClass="large"
                                             required="true" requiredMessage="#{labels['FIELD']} '#{labels['LOGIN']}' #{labels['REQUIRED']}"/>
                            </td>
                        </tr>                        
                        <tr>
                            <td><label>#{labels['EMAIL']}:</label></td>
                            <td>
                                <h:inputText value="#{authBean.credentials.email}" maxlength="250" styleClass="large"
                                            required="true" requiredMessage="#{labels['FIELD']} '#{labels['EMAIL']}' #{labels['REQUIRED']}" converter="email"/>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="rj">
                                <h:commandButton value="#{labels['READY']}" action="#{authBean.recoverPassword}"/>
                            </td>
                        </tr>
                    </table>
                </h:form>

            </ui:decorate>
        </ui:define>
    </ui:composition>
</html>